﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NStore.Domain.Tests
{
    [TestClass]
    public class UserTest
    {
        

        [TestMethod]
        public void ValidatePassword_WithPassworCorrect_ShouldbeOk()
        {
            User user = new User("username","password");
            Assert.IsTrue(user.ValidatePassword("password"));
        }

        [TestMethod]
        public void ValidatePassword_WithPassworIncorrect_NonShouldbeOk()
        {
            User user = new User("username", "password");
            Assert.IsFalse(user.ValidatePassword("incorrectPassword"));
        }


    }
}
